package com.zhenlong01.zhentest.dao;

import com.zhenlong01.zhentest.entity.BaoXiuMan;
import com.zhenlong01.zhentest.entity.Equipment;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface EquipmentDao  extends PagingAndSortingRepository<Equipment,Integer>,
        JpaSpecificationExecutor<Equipment> {
    Equipment findByENo(String eno);

    Iterable<Equipment> findAllByBaoXiuMan(BaoXiuMan baoXiuMan);
}